Learn regular expression the easy way
Table of Contents
Regular expression
正则表达式 (简称regex或regexp)是
read
- Stack Overflow "regex" tag wiki: http://www.regular-expressions.info
- Simple: http://www.grymoire.com/Unix/Regular.html
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html
reference
https://github.com/tartley/python-regex-cheatsheet
http://www.night-ray.com/regex.pdf
http://web.mit.edu/hackl/www/lab/turkshop/slides/regex-cheatsheet.pdf
http://www.rexegg.com/regex-quickstart.html
http://regexlib.com/CheatSheet.aspx?AspxAutoDetectCookieSupport=1
http://www.cheatography.com/davechild/cheat-sheets/regular-expressions/
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html
http://www.regular-expressions.info/
Other Tools
- Test your regexes: http://regexpal.com/
- Visualize your regexes: http://www.regexper.com/
- Javascript docs
- debug and visualize regexes: https://www.debuggex.com/
- an online regex tester for javascript, php, pcre and python: http://regex101.com/
- one online regex tool to validate your understanding: http://www.gethifi.com/tools/regex#
- Regex Match Maker: http://sourceforge.net/projects/quregexmm/
其他资料
Online resources
- Try some challenges: http://callumacrae.github.io/regex-tuesday/
- Learn regular expressions in about 55 minutes
- Pearl: http://perldoc.perl.org/perlretut.html
- Simpler Starting level: http://regexone.com/
- A longer one: http://www.regular-expressions.info
- Stack Overflow "regex" tag wiki: http://www.regular-expressions.info
- Simple: http://www.grymoire.com/Unix/Regular.html